package com.isoftstone.role.service;

import com.isoftstone.platform.entity.PadingRstType;
import com.isoftstone.platform.entity.PagingBean;
import com.isoftstone.role.entity.RoleEntity;
import com.isoftstone.role.entity.RoleMenuInfoTreeEntity;
import com.isoftstone.role.entity.SearchRoleEntity;

import java.util.List;

public interface RoleService
{
    List<RoleEntity> queryRoleInfo();
    
    PadingRstType<RoleEntity> getRoleList(SearchRoleEntity search, PagingBean pagingBean);
    
    void addRole(RoleEntity roleEntity);

    void updateRoleDail(RoleEntity roleEntity);

    String deleteRoleInfo(String roleuuid);
    
    List<RoleEntity> queryRoleListById(String id);

    List<RoleMenuInfoTreeEntity> queryRoleMenuInfoZtreeList(String roleuuid);

    void grantRole(String roleuuid,String[] mid);

    void  cancelPermissions(String roleuuid);
}
